﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="Device.aspx.cs" Inherits="Admin_AddDevice" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="../Styles/ContactSubmit.css" rel="stylesheet" type="text/css" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <div align="left">
        <div style="font-size:x-large; text-align:left;">Device</div>
        <div>
            <div><b>Customer:</b></div> 
            <div><asp:Literal ID="litCustomer" runat="server"></asp:Literal></div>        
        </div>
        <br />
        <div class="row">
            <div class="header">Name</div>
            <div class="content">
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ErrorMessage="(*)" ControlToValidate="txtFee" ForeColor="Red" 
                    SetFocusOnError="True"></asp:RequiredFieldValidator>
            </div>
        </div>
        <div class="row">
            <div class="header">CPU</div>
            <div class="content">
                <asp:TextBox ID="txtCpu" runat="server" CssClass="textbox"></asp:TextBox>
            </div>
        </div>
        <div class="row">
            <div class="header">Ram</div>
            <div class="content">
                <asp:TextBox ID="txtRam" runat="server" CssClass="textbox"></asp:TextBox>
            </div>
        </div>
        <div class="row">
            <div class="header">Disk Quota</div>
            <div class="content">
                <asp:TextBox ID="txtDiskQuota" runat="server" CssClass="textbox" ></asp:TextBox>
            </div>
        </div>
        <div class="row">
            <div class="header">BandWidth</div>
            <div class="content">
                <asp:TextBox ID="txtBandWidth" runat="server"></asp:TextBox>
            </div>
        </div>
        <div class="row">
            <div class="header">OS</div>
            <div class="content">
                <asp:DropDownList ID="ddlOS" runat="server" CssClass="textbox" DataTextField="Name" DataValueField="Id" ></asp:DropDownList>
            </div>
        </div>
        <div class="row">
            <div class="header">IP Address</div>
            <div class="content">            
                <asp:TextBox ID="txtIPAddress" runat="server" CssClass="textbox"></asp:TextBox> 
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ErrorMessage="(*)" ControlToValidate="txtIPAddress" ForeColor="Red" 
                    SetFocusOnError="True"></asp:RequiredFieldValidator>
            </div>
        </div>
        <div class="row">
            <div class="header">Fee</div>
            <div class="content">            
                <asp:TextBox ID="txtFee" runat="server" CssClass="textbox"></asp:TextBox> 
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ErrorMessage="(*)" ControlToValidate="txtFee" ForeColor="Red" 
                    SetFocusOnError="True"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToValidate="txtFee" Type="Currency" ForeColor="Red"
                    Operator="DataTypeCheck" ErrorMessage="Value must be a currency!" />
            </div>
        </div>
        <div class="row">
            <div class="header">Effective Date</div>
            <div class="content">            
                <asp:TextBox ID="txtFromDate" runat="server" Width="100px" ></asp:TextBox>&nbsp;
                <img id="Img1" alt="calender" runat="server" src="~/Resources/Images/calendar.gif" />
                <ajaxtoolkit:calendarextender
                    ID="CalendarFromDate" runat="server" 
                    DefaultView="Days" TargetControlID="txtFromDate"  PopupButtonID="Img1"></ajaxtoolkit:calendarextender>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ErrorMessage="(*)" ControlToValidate="txtFromDate" ForeColor="Red" 
                    SetFocusOnError="True"></asp:RequiredFieldValidator>                
                &nbsp;
                <asp:TextBox ID="txtToDate" runat="server" Width="100px" ></asp:TextBox>&nbsp;
                <img id="Img2" alt="calender" runat="server" src="~/Resources/Images/calendar.gif" />
                <ajaxtoolkit:calendarextender
                    ID="CalendarToDate" runat="server" 
                    DefaultView="Days" TargetControlID="txtToDate"  PopupButtonID="Img2"></ajaxtoolkit:calendarextender>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ErrorMessage="(*)" ControlToValidate="txtToDate" ForeColor="Red" 
                    SetFocusOnError="True"></asp:RequiredFieldValidator>
            </div>
        </div>
        <br />
        <div class="row" style="vertical-align: bottom">
            <asp:Button ID="btnSave" runat="server" onclick="btnSave_Click" Text="Save" Width="81px" />
            &nbsp;or&nbsp;
            <asp:LinkButton ID="btnCancel" runat="server" onclick="btnCancel_Click" Text="Save" Width="81px">Cancel</asp:LinkButton>
        </div>
    </div>
</asp:Content>

